package cn.com.system.service.impl;


import cn.com.system.mapper.AccountsDao;
import cn.com.system.pojo.Accounts;
import cn.com.system.service.AccountsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@Service("accountsService")
public class AccountsServiceImpl implements AccountsService {
    @Resource
    private AccountsDao accountsDao;


    @Override
    public List<Accounts> selectAll(Accounts accounts) {
        return accountsDao.selectAll(accounts);
    }

    @Override
    public int updateAcc(Accounts accounts) {
        return accountsDao.updateAcc(accounts);
    }


    @Override
    public int deleteAcc(Integer t_id) {
        return accountsDao.deleteAcc(t_id);
    }

    @Override
    public int delAll(Integer[] ids) {

        return accountsDao.delAll(ids);
    }


    @Override
    public int addAcc(Accounts accounts) {
        return accountsDao.addAcc(accounts);
    }

    @Override
    public int getUserCount(HashMap<String, Object> map) {
        return accountsDao.getUserCount(map);
    }
    @Override
    public List<Accounts> getUserList(HashMap<String, Object> map) {
        return accountsDao.getUserList(map);
    }
}
